<div class="stats">
    <p class="stat"><span class="number">53</span>充值</p>
    <p class="stat"><span class="number">27</span>提现</p>
    <!-- <p class="stat"><span class="number">15</span></p> -->
    <p class="stat pull-left">等待处理</p>
</div>
<h1 class="page-title">控制面板</h1>
<div class="row-fluid">
    <div class="block">
        <p class="block-heading" data-toggle="collapse" data-target="#chart-container">统计图</p>
        <div id="chart-container" class="block-body collapse in">
            <div id="line-chart"></div>
        </div>
    </div>
</div>
<div class="row-fluid">
    <div class="block span6">
        <div class="block-heading" data-toggle="collapse" data-target="#tablewidget">最近注册</div>
        <div id="tablewidget" class="block-body collapse in" >
            <table class="table" style="min-height:200px;">
                <thead>
                    <tr>
                        <th>邮箱</th>
                        <th>用户名</th>
                        <th>注册时间</th>
                    </tr>
                </thead>
                <tbody>
                    <?php if ($last_users): ?>
                        <?php foreach ($last_users as $key => $one): ?>
                            <tr>
                                <td><?php echo $one['User']['email']; ?></td>
                                <td><?php echo $one['User']['name']; ?></td>
                                <td><?php echo date('Y-m-d H:i:s',$one['User']['created']); ?></td>
                            </tr>
                        <?php endforeach ?>
                    <?php endif ?>
                </tbody>
            </table>
            <p><a href="/admin/Users/index">点击更多....</a></p>
        </div>
    </div>
    <div class="block span6">
        <div class="block-heading" data-toggle="collapse" data-target="#widget1container">Collapsible </div>
        <div id="widget1container" class="block-body collapse in">
            <h2>操作指南</h2>
            <p>1\用户填写相应汇款信息,申请充值</p>
            <p>1\用户获得相应货币</p>
            <p>1\用户申请挂单</p>
            <p>1\系统自动处理挂单,生成交易</p>
        </div>
    </div>
</div>
<div class="row-fluid">
    <div class="block span6">
        <div class="block-heading" data-toggle="collapse" data-target="#widget2container">最近交易<span class="label label-warning">+10</span></div>
        <div id="widget2container" class="block-body collapse in">
            <table class="table" style="min-height:200px;">
                <tbody>
                    <tr>
                        <th>用户</th>
                        <th>类型</th>
                        <th>时间</th>
                    </tr>
                    <?php if ($last_orders): ?>
                        <?php foreach ($last_orders as $key => $one): ?>
                            <tr>
                                <td>
                                    <p><i class="icon-user"></i><?php echo $one['User']['name']; ?></p>
                                </td>
                                <td>
                                    <p><?php echo $one['Order']['order_type'];?></p>
                                </td>
                                <td>
                                    <p>日期: <?php echo date('Y-m-d',$one['Order']['created']); ?></p>
                                    <a href="/">查看明细</a>
                                </td>
                            </tr>
                        <?php endforeach ?> 
                    <?php endif ?>  

                </tbody>
            </table>
        </div>
    </div>
    <div class="block span6">
        <p class="block-heading">系统收益</p>
        <div class="block-body">
            <table class="table">
                <tr>
                    <th>BTC</th>
                    <td>10</td>
                </tr>
                <tr>
                    <th>LTC</th>
                    <td>20</td>
                </tr>
                <tr>
                    <th>USD</th>
                    <td>10</td>
                </tr>
                <tr>
                    <th>ARS</th>
                    <td>20</td>
                </tr>
            </table>
        </div>
    </div>
</div>